package com.eagle.videoboot.exception;

import lombok.Data;

/**
 * 业务异常
 *
 */
@Data
public class ServiceException extends RuntimeException {
	private String errCode;
	private String message;

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -2483599972506697940L;

	public ServiceException() {
		super();
	}
	
	public ServiceException(String message, Throwable cause) {
		super(message, cause);
		this.message = message;
	}

	public ServiceException(String message) {
		super(message);
		this.message = message;
	}

	public ServiceException(Throwable cause) {
		super(cause);
	}

	public ServiceException(String errCode, String message) {
		super(message);
		this.errCode = errCode;
		this.message = message;
	}

}